﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace XNAGame_Lab1
{
    public class Cell : VisibleGame
    {
        float _Scale = 0.1f;
        public Cell(ContentManager content,string texture,Vector2 topleft,Vector2 size)
        {
            Size = size;
            _TopLeft = topleft;
            Texture2D[] textures = new Texture2D[1];
            textures[0] = content.Load<Texture2D>(texture);
            Sprites = new List<MySprites2D>();
            MySprites2D tempSprites = new MySprites2D(textures,topleft);
            tempSprites.Size = size;
            Sprites.Add(new MySprites2D(textures,topleft));
            nSprites = 1;
        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
        }
        public override bool isClicked(Vector2 point)
        {
            return base.isClicked(point);
        }
    }
}
